<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let person={};
        let n=Symbol('name');
        person[Symbol('name')]='zhangsan';
        person[n]='sam';
        console.log(person);//{Symbol(name): 'zhangsan', Symbol(name): 'sam'}
        console.log(person[n]);//sam
    </script>
</body>
</html>